package com.scud.model.order.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderInfoVo {
    //主键id
    @JsonFormat(shape =JsonFormat.Shape.STRING)
    private Long id;
    //订单创建人id
    private Long userId;
    //订单状态：0：未支付；1：已支付；2：已取消；3：已超时
    private Integer status;
    //支付时间
    private LocalDateTime payTime;
    //订单总金额
    private Double total;
    //收货地址
    private String address;
    //收货人手机号
    private String receiverPhone;
    //收货人姓名
    private String receiverName;
    //创建时间
    private LocalDateTime createTime;
    //订单超时时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime overTime;

    //商品列表
    private List<OrderSkuVo> goods;
}